package com.zdd.ehe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdd.ehe.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdd.ehe.entity.Role;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-13
 */
public interface IPermissionService extends IService<Permission> {
    /**
     * 分页查询权限列表
     * @param page
     * @return
     */
    Page<Permission> getAllPermissionByPage(Page<Permission> page);


    /**
     * 添加权限
     * @param permission
     * @return
     */
    int addPermission(Permission permission);
}
